package com.databaseManager;

/**
 * @author addzero
 * @version 1.0
 */
public class Record {
    private String Rid;//病历编号，长度为15位
    private String Pid;//病人身份证号，长度为18位
    private String Eid;//医生身份证号，长度为18位
    private String UpadteDate;//病历填写日期，格式为yyyy-mm-dd或yyyy.mm.dd
    private String Treat;//诊断
    private String DiagType;//就诊类型，长度为2，通常用“初诊”或“复诊”
    private String InfectDate;//发病日期，格式为yyyy-mm-dd或yyyy.mm.dd
    private String DrugHistory;//药物史
    private String MainComplaint;//主诉
    private String curMedicalHistory;//现病史

    /**
     * Record构造函数
     * @param rid 病历编号，长度为15位，非空
     * @param pid 病人身份证号，长度为18位，非空
     * @param eid 医生身份证号，长度为18位，非空
     * @param upadteDate 病历填写日期，格式为yyyy-mm-dd或yyyy.mm.dd，非空
     * @param treat 诊断，非空
     * @param diagType 就诊类型，长度为2，通常用“初诊”或“复诊”，非空
     * @param infectDate 发病日期，格式为yyyy-mm-dd或yyyy.mm.dd，非空
     * @param drugHistory 药物史，非空
     * @param mainComplaint 主诉，非空
     * @param curMedicalHistory 现病史，非空
     */
    public Record(String rid, String pid, String eid, String upadteDate, String treat, String diagType,
                  String infectDate, String drugHistory, String mainComplaint, String curMedicalHistory) {
        Rid = rid;
        Pid = pid;
        Eid = eid;
        UpadteDate = upadteDate;
        Treat = treat;
        DiagType = diagType;
        InfectDate = infectDate;
        DrugHistory = drugHistory;
        MainComplaint = mainComplaint;
        this.curMedicalHistory = curMedicalHistory;
    }

    public String getRid() {
        return Rid;
    }

    public void setRid(String rid) {
        Rid = rid;
    }

    public String getPid() {
        return Pid;
    }

    public void setPid(String pid) {
        Pid = pid;
    }

    public String getEid() {
        return Eid;
    }

    public void setEid(String eid) {
        Eid = eid;
    }

    public String getUpadteDate() {
        return UpadteDate;
    }

    public void setUpadteDate(String upadteDate) {
        UpadteDate = upadteDate;
    }

    public String getTreat() {
        return Treat;
    }

    public void setTreat(String treat) {
        Treat = treat;
    }

    public String getDiagType() {
        return DiagType;
    }

    public void setDiagType(String diagType) {
        DiagType = diagType;
    }

    public String getInfectDate() {
        return InfectDate;
    }

    public void setInfectDate(String infectDate) {
        InfectDate = infectDate;
    }

    public String getDrugHistory() {
        return DrugHistory;
    }

    public void setDrugHistory(String drugHistory) {
        DrugHistory = drugHistory;
    }

    public String getMainComplaint() {
        return MainComplaint;
    }

    public void setMainComplaint(String mainComplaint) {
        MainComplaint = mainComplaint;
    }

    public String getCurMedicalHistory() {
        return curMedicalHistory;
    }

    public void setCurMedicalHistory(String curMedicalHistory) {
        this.curMedicalHistory = curMedicalHistory;
    }
}
